#ifndef MISC_H
#define MISC_H

#include <vector>
using namespace std;

class node
{
public:
    int profit;           /* current profit or maximum possible profit */
    int weight;           /* current weight */
    vector<int> solution; /* current solution */

    int step; /* currently considered node */
    int size; /* the dimension of solution vector */

    node &operator=(node &); /* copy the node */
    node(const int *, const int &, const int &, const int &, const int &);
};

struct result
{
    int optimum;
    int *solution;
};

#endif